<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<html>
<body>
	<h1>Books: </h1>
	<table border="1" cellpadding="10" cellspacing="0">
		<tr>
			<th>name</th>
			<th>count</th>
			<th>price</th>
		</tr>
		
	<c:forEach items="${books}" var="book">
		
		<tr>
	    <td><a href="<c:url value="/book/${book.id}" />">${book.name}</a></td>
	    <td>${book.count}</td> 
	    <td>${book.retailPrice}</td>
	    
    	</tr>
    	
	</c:forEach>
	</table>
	
	
	<br/><br/>
	<a href="<c:url value="/orders" />">Show my orders</a>
	<a href="<c:url value="/logout" />">Logout</a> 
</body>
</html>